package com.qmds.userserver.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qmds.common.core.param.PhoneCode;
import com.qmds.common.core.param.UserFindPwd;
import com.qmds.common.core.vo.R;
import com.qmds.userserver.user.param.UpdateByIdParam;
import com.qmds.userserver.user.vo.PeopleVo;
import com.qmds.userserver.user.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserService {

    PeopleVo my(Integer id);

    List<PeopleVo> findAll(IPage<PeopleVo> page,HashMap<String, String> map);


    R addUser(UserVo userVo);

    boolean updateUser(UserVo userVo);

    List<Integer> getType();

    R<List<Map<String,Object>>> getEcharts(Integer type);

    /**
     * 校验手机号*/
    R checkPhone(String phone);

    /**
     * 发送注册验证码*/
    R sendRcode(String phone);

    /**
     * 校验验证码*/
    R checkRcode(PhoneCode phoneCode);

    R findPwd(UserFindPwd pwd);

    R updateById(UpdateByIdParam updateByIdParam);
}
